package com.wanxi.model;

public class NewPhone extends Phone {
    private String address;

    public NewPhone() {
        this.address = address;
    }

    public NewPhone(String address) {
        this.address = address;
    }

//    public NewPhone(String name, String address) {
//        super(name);
//        this.address = address;
//    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    @Override
    public void sendMessage(String name) {

        System.out.println("给" + name + "发短信");
        System.out.println("在" + address);
    }
}
